const fs = require("fs");
const path = require("path");

let filePath = path.join(__dirname,"test");
let result = fs.readdirSync(filePath);
console.log(result);

/**rmdirSync移除文件夹 */
let flag = fs.rmdirSync(filePath);
console.log(flog);